package com.TestDemo.Test202203To04;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2022/03/23/9:11
 * @Description:
 * @Target: 数据进来排序
 */
public class SortTest {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextLine()){
            String[] s = in.nextLine().split(" ");
            ArrayList<Integer> list = new ArrayList<>();
            for (String s1 : s) {
                list.add(Integer.valueOf(s1));
            }
            Collections.sort(list);
            for (Integer object : list) {
                System.out.print(object
                        +" ");
            }
        }
    }
}
